package com.test05;

/**
 * @author south wind
 * @version 1.0
 * @date 2025/3/31 22:33
 * @description
 */
public class Card {
    private String suit; // 花色
    private String rank; // 点数
    private int id; // 序号

    public Card(String suit, String rank, int id) {
        this.suit = suit;
        this.rank = rank;
        this.id = id;
    }

    public String getSuit() {
        return suit;
    }

    public String getRank() {
        return rank;
    }

    public int getId() {
        return id;
    }

    @Override
    public String toString() {
        if (suit == null) {
            return rank;
        }
        return suit + rank;
    }
}
